<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet"
	href="/jquery-easyui-1.5.2/themes/bootstrap/easyui.css"></link>
<link rel="stylesheet" href="/jquery-easyui-1.5.2/themes/icon.css"></link>
<link rel="stylesheet" href="/css/wholeStyle.css"></link>
<script type="text/javascript" src="/jquery-easyui-1.5.2/jquery.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/js/initComponent.js"></script>
<script type="text/javascript" src="/js/publicJs.js"></script>
</head>
<body style="margin: 0; padding: 0">
	<div id="menu"  style="width:150px;">   
	    <div>新增</div>   
	    <div>修改</div>   
	    <div>删除</div>   
	    <div class="menu-sep"></div>   
	    <div>Exit</div>   
	</div>  
	<div id="insertMenu"  style="width:150px;">   
	    <div>保存</div>   
	    <div>放弃</div>   
	</div>  

	<div id="pp"
		style="background: #efefef; border: 1px solid #ccc; height: 30px;"></div>
	<!-- <div id="pp1" class="easyui-pagination" data-options="total:2000,pageSize:10" style="background:#efefef;border:1px solid #ccc;"></div>  -->
	<!-- 表单外层 -->
	<div class="form-warp">
		<form action="" id="form">
			<!-- 表单中的一项 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="no" class="label-blue">单据号码：</label> <input class="easyui-textbox" id="billNo" />
				</div>
				<div class="form-item">
					<label for="">单据日期：</label> <input class="easyui-datebox" id="" />
				</div>
				<div class="form-item">
					<label for="">增值科目：</label> <input id="" class="easyui-textbox"/>
				</div>
				<div class="form-item">
					<label for="">减值科目：</label> <input id="" class="easyui-textbox"/>
				</div>
			</div>
			<!-- 表单中的一项 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="">调整方式：</label> <input class="easyui-textbox" id="" />
				</div>
				<div class="form-item">
					<label for="">制单人员：</label> <input class="easyui-textbox" id="" />
				</div>
				<div class="form-item">
					<label for="">复核人员：</label> <input class="easyui-textbox" id="" />
				</div>
				<div class="form-item">

				</div>
			</div>
		</form>
	</div>
	<div class="grid-warp">
		<div class="easyui-tabs" style="height: 200px; width: '100%';flex:1;">
			<div title="内容" style="height: 20px;">
				<table id="cgqgd"></table>
			</div>
		</div>
	</div>
<span id="shenhe"></span>
</body>
<script type="text/javascript">

	$(function() {
		initMenu();
		$(".easyui-datebox").datebox("setValue",formatterDate(new Date()));
		$("#pp").pagination({
					height : 30,
					layout : [ 'sep' ],
					buttons : [ {
						iconCls : 'icon-my-first',
						handler : function() {
							alert("第一页");
						}
					},{
						iconCls : 'icon-my-prev',
						handler : function() {
						}
					},{
						iconCls : 'icon-my-next',
						handler : function() {
							closeDisabled();
						}
					},{
						iconCls : 'icon-my-last',
						handler : function() {
						}
					},{
						iconCls : 'icon-my-add',
						text : "新增",
						handler : function() {
							var tab=parent.$("#window-tabs").tabs("getSelected");
							changeTabStatus(tab,'新增');
							closeDisabled();
						}
					}, {
						iconCls : 'icon-my-update',
						text : "修改",
						handler : function() {
							alert("修改");
						}
					}, {
						iconCls : 'icon-my-delete',
						text : "删除",
						handler : function() {
							alert("删除");
						}
					}, {
						iconCls : 'icon-my-audit',
						text : "审核",
						handler : function() {
							alert("审核");
							$("#shenhe").hide();
						}
					} ]
				});
		$("form").find(".isdisabled").textbox();//先把从始至终为disabled 的控件初始化
		$("form").find(".isdisabled").textbox("disable");//再把他们设为disabled
		openDisabled();
		$("#cgqgd").datagrid({
			fit : true,
			rownumbers : true,
			columns:[[
						{field:"0",title:"*",width:30},   
				        {field:"1",title:"(栏号)",width:100},   
				        {field:"2",title:"物料编号",width:100},   
				        {field:"3",title:"(物料名称)",width:100},
				        {field:"4",title:"(规格型号)",width:100},   
				        {field:"5",title:"(单位)",width:100},   
				        {field:"6",title:"(库存量)",width:100},
				        {field:"7",title:"(平均成本)",width:100},   
				        {field:"8",title:"单价",width:100},
				        {field:"9",title:"(调价金额)",width:100},
				        {field:"10",title:"分录备注",width:100}
				       
				    ]]      
		});
	});
</script>
</html>